﻿@using System.Linq
@using Easy.CMS.Section.Models
@model SectionWidget
<div class="widget section">
    @if (Model.SectionTitle.IsNotNullAndWhiteSpace())
    {
        <h4>@Model.SectionTitle</h4>
    }
    @foreach (SectionGroup group in Model.Groups.OrderBy(m => m.Order))
    {
        Html.RenderPartial(group.PartialView, group);
    }
</div>
